/* =======================
   Frutiger Aero Theme
   For Piyoverse.net
   ======================= */
.frutiger-aero {
  /* Color Variables */
  --gradient-from: rgba(0, 60, 255, 0.76);
  --gradient-to: rgba(0, 188, 202, 0.822);
  --highlight: #57f4ff;

  --foreground: oklch(0.985 0 0);
  --popover: oklch(80.868% 0.1394 185.533);
  --popover-foreground: oklch(0.985 0 0);
  --muted-foreground: oklch(0.99 0 none / 0.94);
  --accent: oklch(0.13 0 none / 0.25);
  --accent-foreground: oklch(1 0 none);

  /* Syntax Highlighting Colors */
  --sh-class: #5dfaff;
  --sh-identifier: #e7e7e7;
  --sh-sign: #e7e7e7;
  --sh-string: #e7e7e7;
  --sh-keyword: #e7e7e7;
  --sh-comment: #39f2ff;
  --sh-jsxliterals: #e7e7e7;
  --sh-property: #5db0ff;
  --sh-entity: #5decff;
}

/* Body & Background */
html.frutiger-aero {
  background-image: url("grasshills.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  color: #ffffff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.frutiger-aero body main {
  padding-bottom: 0;
}

.frutiger-aero body[data-scroll-locked] main {
  filter: blur(8px);
}

/* =======================
   Popover & Overlay
   ======================= */
.frutiger-aero .bg-popover {
  /* dark, translucent popover: grey -> black gradient (translucent) */
  background: linear-gradient(165deg, rgba(160,160,160,0.12), rgba(0,0,0,0.6));
  box-shadow: none;
  backdrop-filter: blur(6px) saturate(1.03);
  -webkit-backdrop-filter: blur(6px) saturate(1.03);
  border-radius: 1rem;
  padding: 1rem;
  color: #ffffff;
}

.frutiger-aero .overlay {
  background: rgba(41, 41, 41, 0.25); /* subtle overlay */
}

/* =======================
   Main Content
   ======================= */
.frutiger-aero main {
  /* main panel: grey -> black translucent gradient */
  background: linear-gradient(180deg, rgba(160,160,160,0.12), rgba(0,0,0,0.7));
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 
    0px 10px 20px rgba(0, 0, 0, 0.6),
    inset 0px 2px 1px rgba(255, 255, 255, 0.02),
    inset 0px -2px 1px rgba(0, 0, 0, 0.6);
  margin: 1rem auto;
  max-width: 1200px;
  background-blend-mode: overlay;
  color: #ffffff; /* light text on dark panels */
}

/* give extra breathing room after the about section */
.frutiger-aero .about-piyoverse { padding-bottom: 2.25rem; margin-bottom: 1.25rem; }

/* when panels are forced solid, replace translucent backgrounds with solid variants */
html.frutiger-aero.solid-panels main,
html.frutiger-aero.solid-panels .bg-popover,
html.frutiger-aero.solid-panels .games-panel,
html.frutiger-aero.solid-panels .game-card {
  /* Light-mode solid panels: keep a gentle gradient so the panels are opaque
     but not harsh — this preserves decorative overlays while switching to
     a brighter, high-contrast surface. */
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,245,247,0.95)) !important;
  box-shadow: 0 12px 36px rgba(10,12,18,0.06) !important;
  color: #071025 !important; /* dark text for readability on light panels */
}

/* ensure content sits above the solid overlay and inherits the dark text */
html.frutiger-aero.solid-panels main > *,
html.frutiger-aero.solid-panels .bg-popover > *,
html.frutiger-aero.solid-panels .games-panel > *,
html.frutiger-aero.solid-panels .game-card > * {
  position: relative;
  z-index: 1;
  color: inherit;
}

/* In light panel mode, ensure muted text and meta use slightly darker greys */
html.frutiger-aero.solid-panels .game-desc,
html.frutiger-aero.solid-panels .game-meta,
html.frutiger-aero.solid-panels .muted {
  color: #23303b !important;
}

/* =======================
   Prose / Images / Code
   ======================= */
.frutiger-aero .prose img {
  border-radius: 16px;
  border: 0.1rem solid white;
  filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.7));
  max-width: 100%;
  height: auto;
}

.frutiger-aero .prose pre {
  background: linear-gradient(
    155deg,
    rgba(15, 71, 134, 0.6) 0%,
    rgba(28, 148, 92, 0.25) 50%,
    rgba(2, 133, 24, 0.26) 100%
  );
  padding: 1rem;
  border-radius: 12px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  color: white;
}

/* =======================
   Navigation
   ======================= */
.frutiger-aero .nav-container {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: linear-gradient(180deg, #f2faff40, #0000001f);
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.7));
  justify-content: center;
  margin-bottom: 2rem;
}

.frutiger-aero .nav-item {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.5));
  /* subtle light-blue -> blue base */
  background: linear-gradient(180deg, rgba(138,237,255,0.12), rgba(0,60,255,0.18));
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.frutiger-aero .nav-item:hover {
  background: linear-gradient(180deg, rgba(138,237,255,0.95), rgba(0,60,255,0.92));
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.55);
}

/* =======================
   Footer
   ======================= */
.frutiger-aero .site-footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--highlight);
}

/* =======================
   Button gradient outline + animated circles
   Applies to native buttons and elements using `.btn` (excludes plain links)
   ======================= */

.frutiger-aero button,
.frutiger-aero .btn,
.frutiger-aero input[type="button"],
.frutiger-aero input[type="submit"] {
  position: relative;
  display: inline-block;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.2));
  color: var(--foreground);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  z-index: 1;
  overflow: visible;
}

/* gradient outline using a blurred pseudo-element */
.frutiger-aero .nav-item::before,
.frutiger-aero button::before,
.frutiger-aero .btn::before,
.frutiger-aero input[type="button"]::before,
.frutiger-aero input[type="submit"]::before {
  content: "";
  position: absolute;
  /* make the glow tighter and very subtle */
  inset: -4px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--gradient-from), var(--gradient-to));
  /* low blur so it's gentle and cyan-leaning */
  filter: blur(4px) saturate(1.02);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.6s linear;
  pointer-events: none;
  z-index: 0;
}

/* animated circular aura */
.frutiger-aero .nav-item::after,
.frutiger-aero button::after,
.frutiger-aero .btn::after,
.frutiger-aero input[type="button"]::after,
.frutiger-aero input[type="submit"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140%;
  height: 140%;
  transform: translate(-50%, -50%) scale(0.85);
  border-radius: 50%;
  /* very subtle cyan aura */
  background: radial-gradient(circle at 50% 40%, rgba(0,200,255,0.03), transparent 18%),
              radial-gradient(circle at 60% 60%, rgba(0,200,255,0.02), transparent 22%);
  filter: blur(4px) saturate(1.02);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.6s cubic-bezier(.2,.9,.2,1);
  pointer-events: none;
  z-index: 0;
}

.frutiger-aero .nav-item:hover::before,
.frutiger-aero button:hover::before,
.frutiger-aero .btn:hover::before,
.frutiger-aero input[type="button"]:hover::before,
.frutiger-aero input[type="submit"]:hover::before,
.frutiger-aero .nav-item:focus::before,
.frutiger-aero button:focus::before,
.frutiger-aero .btn:focus::before,
.frutiger-aero input[type="button"]:focus::before,
.frutiger-aero input[type="submit"]:focus::before {
  /* very low-opacity cyan outline */
  opacity: 0.22;
  transform: translateZ(0);
  animation: outline-drift 3.6s linear infinite;
}

.frutiger-aero .nav-item:hover::after,
.frutiger-aero button:hover::after,
.frutiger-aero .btn:hover::after,
.frutiger-aero input[type="button"]:hover::after,
.frutiger-aero input[type="submit"]:hover::after,
.frutiger-aero .nav-item:focus::after,
.frutiger-aero button:focus::after,
.frutiger-aero .btn:focus::after,
.frutiger-aero input[type="button"]:focus::after,
.frutiger-aero input[type="submit"]:focus::after {
  /* very low-opacity cyan aura */
  opacity: 0.12;
  transform: translate(-50%, -50%) scale(1);
  animation: circle-pulse 1.6s ease-out infinite;
}

@keyframes circle-pulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.03); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.6; }
}

/* subtle underlay for games panel only (removed main::after to avoid double-panel effect) */
.frutiger-aero .games-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg,
              rgba(255,255,255,0.04) 0%,
              rgba(255,255,255,0.02) 30%,
              rgba(255,255,255,0.00) 70%);
}

@keyframes circle-pulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.03); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.6; }
}

/* Ensure the outline sits behind the button content */
.frutiger-aero button > *,
.frutiger-aero .btn > * { position: relative; z-index: 2; }
.frutiger-aero .social-bar { gap: 10px; }
.frutiger-aero .social-item { display:inline-flex; flex-direction: column; align-items:center; gap:8px; flex: 0 0 auto; }
.frutiger-aero .social-label { color: var(--foreground); text-decoration: none; font-size: 0.85rem; }
.frutiger-aero .social-label:hover { text-decoration: underline; }

/* If someone keeps the flat structure (a.social-link only), ensure no overlap
   by forcing social-link to be smaller and labels to appear if present */
.frutiger-aero .social-link { display:block; margin:0; }


.frutiger-aero .social-bar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 1rem 0 0.5rem 0;
  margin-top: 2rem;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.frutiger-aero .social-link {
  width: 48px;
  height: 48px;
  display: inline-block;
  border-radius: 10px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  position: relative;
}

/* subtle overlay glow using pseudo-element so icons themselves remain crisp */
.frutiger-aero .social-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.08), transparent 20%),
              linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0));
  filter: blur(6px) saturate(1.1);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.frutiger-aero .social-link:hover,
.frutiger-aero .social-link:focus {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 8px 18px rgba(0,0,0,0.55);
  z-index: 2;
}

.frutiger-aero .social-link:hover::after,
.frutiger-aero .social-link:focus::after {
  opacity: 1;
  transform: scale(1.02);
}

/* per-icon backgrounds (update paths if your assets are elsewhere) */
.frutiger-aero .social-youtube { background-image: url('youtubeicon.png'); }
.frutiger-aero .social-discord { background-image: url('discordicon.png'); }
.frutiger-aero .social-bsky { background-image: url('bskyicon.png'); }
.frutiger-aero .social-twt { background-image: url('twticon.png'); }

/* optional: slightly larger icons on wider screens */
@media (min-width: 900px) {
  .frutiger-aero .social-link { width: 56px; height: 56px; border-radius: 12px; }
}

/* accessibility: focus outline for keyboard users */
.frutiger-aero .social-link:focus {
  outline: 3px solid rgba(90,180,255,0.35);
  outline-offset: 3px;
}

/* =======================
   Games Container
   Two game cards: Starcrest (Mega Drive) and Starcrest Adventure (GBC prototype)
   Responsive grid: 2 columns on wide screens, 1 column on narrow screens
   ======================= */
.frutiger-aero .game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
  align-items: start;
}

.frutiger-aero .game-card {
  /* No inner panels — cards are purely content rows inside the mother panel.
     Remove padding/borders/shadows so each card doesn't read as a separate surface. */
  background: transparent;
  border-radius: 0;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: none;
  border: none;
}

.frutiger-aero .game-card .game-thumb {
  /* Thumbnail is inline content only — no background or shadow so it doesn't
     read as a separate panel. */
  width: 50%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: none;
  background: transparent;
  flex: 0 0 auto;
  min-height: 0;
}

.frutiger-aero .game-thumb img { width:100%; height:100%; object-fit:cover; display:block; }

.frutiger-aero .game-title { font-size: 1.1rem; font-weight: 700; color: #0b63d8; }
.frutiger-aero .game-desc { color: rgba(255,255,255,0.92); font-size: 0.95rem; line-height: 1.4; }
.frutiger-aero .game-meta { font-size: 0.85rem; color: rgba(255,255,255,0.78); }

.frutiger-aero .game-actions { display:flex; gap:0.75rem; margin-top: auto; }

/* Make game action buttons look like the nav items for visual consistency */
.frutiger-aero .game-actions .btn {
  /* mirror .nav-item for consistent appearance: use light-blue -> blue base */
  padding: 0.5rem 1rem;
  border-radius: 8px;
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.5));
  background: linear-gradient(180deg, rgba(138,237,255,0.12), rgba(0,60,255,0.18));
  color: white;
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.frutiger-aero .game-actions .btn:hover,
.frutiger-aero .game-actions .btn:focus {
  background: linear-gradient(180deg, rgba(138,237,255,0.95), rgba(0,60,255,0.92));
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}
.frutiger-aero .game-thumb img { width: 100%; height: 100%; object-fit: cover; display:block; }

/* Games panel - visually distinctive and modern */
.frutiger-aero .games-panel {
  position: relative;
  padding: 1.25rem;
  margin: 1.5rem 0;
  border-radius: 14px;
  /* dark translucent games panel with layered gradient accents */
  background:
    linear-gradient(180deg, rgba(10,14,24,0.78), rgba(6,10,18,0.72)),
    radial-gradient(900px 240px at 12% 6%, rgba(0,60,255,0.035), transparent 10%),
    linear-gradient(90deg, rgba(0,188,202,0.02), transparent 35%);
  box-shadow: none;
  backdrop-filter: blur(6px) saturate(1.03);
  overflow: visible;
  color: #ffffff; /* ensure panel text is white */
}


.frutiger-aero .games-panel > * { position: relative; z-index: 1; }

/* Decorative angled sheen */
.frutiger-aero .games-panel::after {
  content: "";
  position: absolute;
  left: -10%;
  top: -10%;
  width: 120%;
  height: 60%;
  transform: rotate(-12deg);
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

/* Card hover: subtle lift + tilt effect */
.frutiger-aero .game-card { transition: background-color 180ms ease, transform 180ms ease; transform-origin: center; }
.frutiger-aero .game-card:hover { /* subtle highlight only, no lift */ background-color: rgba(255,255,255,0.02); transform: none; box-shadow: none; }

/* draw subtle separators between cards so the panel feels continuous */
/* Removed separators — the games-panel is a single mother panel with content rows */

/* Small screens: single column and tighter padding inside the panel */
@media (max-width: 760px) {
  .frutiger-aero .game-grid { grid-template-columns: 1fr; }
  .frutiger-aero .games-panel { padding: 0.9rem; }
  /* thumbnails should expand to full width on small screens */
  .frutiger-aero .game-card .game-thumb,
  .frutiger-aero .game-thumb { width: 100%; max-width: none; }
}

@media (max-width: 760px) {
  .frutiger-aero .game-grid { grid-template-columns: 1fr; }
  .frutiger-aero .game-card .game-thumb { height: 160px; }
}
